Hi,<br /><br />JustDave originally posted this as a reply to a 'How do I' some time ago. As I have just added this to my forums, I have posted this as a Mod, with a minor tweak for 6.2, in case anyone else would benefit from it for their forums, if they use groups, and wish for a method of people joining a group. Thanks to JustDave for the origianl code.<br /><br />If it of use to anyone great - it is a minor tweak, but could probably be taken a stage further by allowing users to autoswitch between certain groups <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br /><br /><br /><br />Mod Name - Groups - Auto Signup v 1.0<br /><br /> <br />Description - This modification will allow users to join a particular group upon sign-up. It gives a drop down list of groups available to them to join, and will automatically make that user a member of that group.<br /><br />Working Under - UBB.Threads 6.2 <br /><br />Pre-requisites - no files - but additional groups will need to be set up via admin/create new groups. Existing groups on a clean install of 6.2 are Administrator(1), Moderator(2), User(3) and Guest(4). Therefore additional groups will be created from 5 upwards sequentially.<br /><br />Author - JustDave<br /><br />Credits - JustDave for the original code - tweaked by canvey for 6.2<br /><br />Files Altered - /templates/default/newuser_signup.tmpl /adduser.php<br /><br />Database Altered - none <br /><br />New Files - none <br /><br />Other Info - Backup your database and your files before modifing!!!!!
Attachments
64088-autojoingroups.txt (23 downloads)
_________________________
Fans Focus - Focusing on Fans of Sport
(Okay - mainly football (the British variety
at the moment - but expanding all the time....)